
df = pd.read_excel('titanic_full.xlsx', sheet_name=0, header=0)cond = df.eval("(sex == 'male')")df = df[cond]df = df.query(' 10<age<45')df = df.groupby(['pclass']).agg({'survived': ['sum', 'mean'], 'ticket': ['first']}).reset_index()

# %%

# %%
